package com.example.xyxwebbackend001.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SecurityInfoVO {
    private  String password;
    private  String email;

    public boolean hasPassword() {
        return password != null && !password.trim().isEmpty();
    }

    public boolean hasEmail() {
        return email != null && !email.trim().isEmpty();
    }

    public Map<String, Boolean> getFieldStatus() {
        return Map.of(
                "password", hasPassword(),
                "email", hasEmail()
        );
    }
}
